/**
 * @file
 * @auth jinguangguo
 * @date 2016/10/17
 */

.ui-title {
    padding: 0 24px;
    height: 44px;
    font-weight: normal;
    font-size: 13px;;
    line-height: 44px;
    background-color: $color-bg-light;
    color: #a7adb0;

    &--white{
        padding-left: 0;
        margin-bottom: 26px;
        height: 36px;
        line-height: 36px;
        border-bottom: 1px solid #E8E8E9;
        background-color: inherit;
        font-weight: normal;
        color: #000;
        font-size: 13px;
    }
}

.ui-btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 15px;
    min-width: 64px;
    height: 32px;
    line-height: 32px;
    background-color: $color-btn;
    border-radius: 4px;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;;
    transition: all 0.4s ease;
    &:hover {
        background-color: $color-btn-hover;
        color: #fff;
    }
    &--block {
        display: block;
        width: 100%;
    }
    &--small {
        height: 24px;
        line-height: 24px;
    }
    &--default {
        background-color: #fff;
        color: $color-font;
        border: 1px solid #ccc;
        &:hover {
            background-color: #fafafb;
            color: $color-font;
            border: 1px solid $color-link-hover;
        }
        &:active {
            //background-color: #fafafb;
            //color: #fff;
            //border: 1px solid $color-border-hover;
        }
    }

    &--gray {
        background-color: #f2f2f2;
        color: $color-link;
        //border: 1px solid #ccc;
        &:hover {
            background-color: #f8f8f8;
            color: $color-link-hover;
            //border: 1px solid $color-border-hover;
        }
        //&:active {
        //    background-color: #fafafb;
        //    color: $color-font-dark;
        //    //border: 1px solid $color-link;
        //}
    }

    &--big {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        height: 48px;
        line-height: 48px;
    }

    &--dashed {
        background-color: #fff;
        color: $color-font;
        border: 1px dashed #ccc;
        &:hover {
            background-color: #fafafb;
            color: $color-font;
            border: 1px dashed $color-link-hover;
        }
        &:active {
            //background-color: #fafafb;
            //color: $color-font;
            //border: 1px dashed $color-link;
        }
    }
    &[disabled] {
        cursor: not-allowed;
        pointer-events: none;
        box-shadow: none;
        background-color: $color-font-gray;
        color: #fff;
    }
}

.ui-tip {
    min-height: 16px;
    font-size: 12px;
    line-height: 16px;
    //white-space: nowrap;
    .text {
        color: $color-font-light;
    }
    .error {
        color: #f9504b;
    }
    a {
        @include link;
    }
}

.ui-loading {
    text-align: center;
    padding: 10px 0;
    .text {
        color: $color-font-gray;
    }
}
